CTAGS = -M

# CAST_OBJ := multicast.o cJSON.o common.o
# TEST_OBJ := cJSON.o common.o
# TCP_S_OBJ := tcp_server.o cJSON.o common.o dispatchcmd.o

OBJ := cJSON.o client.o
LINK_LIB := -lm -lpthread
.PHONY: clean
# all : multicast multitest tcp_server
all: client

client:$(OBJ)
	gcc -o client $(OBJ) $(LINK_LIB)

# multicast:$(CAST_OBJ)
# 	gcc -o multicast $(CAST_OBJ) $(LINK_LIB)
# multitest:$(TEST_OBJ)
# 	gcc -o multitest $(TEST_OBJ) $(LINK_LIB)
# tcp_server:$(TCP_S_OBJ)
# 	gcc -o tcp_server $(TCP_S_OBJ) $(LINK_LIB)
# common.o:
# 	gcc -c common.c	

# cJSON.o:
# 	gcc -c cJSON.c	-lm

clean:
	-rm *.o client

